from manim import *
from numpy import flip, insert

LV,QL,QH,JH='#75cfb8','#bbdfc8','#f0e5d8','#ffc478'

class p1(MovingCameraScene):
    def construct(self):
        # self.camera.frame.save_state()
        # self.add(NumberPlane())
        # self.camera.frame.rotate(13*DEGREES,about_point=[0.0, 0.0, 1.0])
        s=Square(8)
        s_red=Square(4).stretch(2,1).set_fill(RED,1)
        s1=s_red.copy().shift(LEFT*6)
        s2=s_red.copy().shift(RIGHT*6)
        font_size=[14,16,18,20,24,28,30,32]
        for i in range(8):
            l=Line().set_stroke(width=i).move_to([-3,3.75-i,0])
            self.add(l,Text('粗细='+str(i)).next_to(l,DOWN))
            # Text
            self.add(Text('Text大小='+str(font_size[i]),font_size=font_size[i]).move_to([-1,3.5-i,0]))
            self.add(Tex('TexSize='+str(font_size[i]),font_size=font_size[i]).move_to([1,3.5-i,0]))
        
        self.add(s,s1,s2)
        self.wait()